home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
RecordEval.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
2KB
|
67 lines
Tcl_RecordAndEval(3) Tcl Library Procedures
_________________________________________________________________
NAME
Tcl_RecordAndEval - save command on history list before
evaluating
SYNOPSIS
#include <tcl.h>
int
Tcl_RecordAndEval(_i_n_t_e_r_p, _c_m_d, _e_v_a_l)
ARGUMENTS
Tcl_Interp *_i_n_t_e_r_p (in) Tcl interpreter in which
to evaluate command.
char *_c_m_d (in) Command (or sequence of
commands) to execute.
int _e_v_a_l (in) 0 means evaluate _c_m_d,
TCL_NO_EVAL means record
it but don't evaluate it.
_________________________________________________________________
DESCRIPTION
Tcl_RecordAndEval is invoked to record a command as an event
on the history list and then execute it. It returns a com-
pletion code such as TCL_OK just like Tcl_Eval and it leaves
information in _i_n_t_e_r_p->_r_e_s_u_l_t. If you don't want the com-
mand recorded on the history list then you should invoke
Tcl_Eval instead of Tcl_RecordAndEval. Normally
Tcl_RecordAndEval is only called with top-level commands
typed by the user, since the purpose of history is to allow
the user to re-issue recently-invoked commands. If the _e_v_a_l
argument is TCL_NO_EVAL then the command is recorded without
being evaluated.
KEYWORDS
command, event, execute, history, interpreter, record
Tcl 1